from odoo import api, fields, models
from ...functions.marketing_record_and_operation_log_func import MarketingRecordAndOperationLogFunc


class IrCronInheritForMarketing(models.Model):
    _inherit = 'ir.cron'
    _description = '任务'

    rp_marketing_auto_schedule_id = fields.Many2one(string='自动任务', comodel_name='rp.marketing.auto.schedule', copy=False)
    auto_schedule_tag = fields.Boolean(string='自动任务标志', default=False, copy=False)
